	<?php
	$roomID = $_GET["roomID"];
	$studentID = $_GET["studentID"];
	$message = $_GET["message"];
	$studentName = $_GET["studentName"];
	
	$con = mysql_connect("localhost","root","");
	if (!$con) {
		die('Could not connect: ' . mysql_error());
	}
	mysql_select_db("ciu196", $con);
	
	$sql = "
	INSERT INTO HelpQueue
	VALUES('$studentID', CURRENT_TIMESTAMP, '$message', '$roomID', '$studentName');";
	
	$res = mysql_query($sql,$con);	
	if(!$res) {
		die('Error: couldnt insert into the helpqueue' . mysql_error());
	} else {
		echo "In queue";
	}
	
	mysql_close();
?>